package cn.coderwe.model;

import java.util.List;

/**
 * @author : coderwe
 */
public class Volume {
    private String name;
    private List<Chapter> chapters;

    public Volume(String name, List<Chapter> chapters) {
        this.name = name;
        this.chapters = chapters;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Chapter> getChapters() {
        return chapters;
    }

    public void setChapters(List<Chapter> chapters) {
        this.chapters = chapters;
    }

    @Override
    public String toString() {
        return this.name;
    }
}
